package com.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class JDKProxy implements InvocationHandler {
	private Object target;
	public JDKProxy(Object target){
		this.target = target;
	}
	@Override
	public Object invoke(Object proxy, Method method, Object[] args)
			throws Throwable {
		System.out.println("JDKProxy:invokeMethod");
		Object obj = method.invoke(this.target, args);
		return obj;
	}
}
